from django.http import HttpResponse
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response


def home(request):
	if request.user.is_authenticated():
		return render_to_response("index.html",{'username':request.user.get_username(),'title':'Distributed Source Code Management'})
	else:
		return HttpResponseRedirect("/login")
